import { createRouter, createWebHashHistory } from 'vue-router'
import FstView from '../views/FstView.vue'

const routes = [
  {
    path: '/',
    redirect: '/fst'
  },
  {
    path: '/fst',
    name: 'Fst',
    component: FstView
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('../views/Sed/LogIn.vue')
  },
  {
    path: '/query',
    name: 'Query',
    component: () => import('../views/Sed/QueryStu.vue')
  },
  {
    path: '/fst/stu',  
    name: 'studentHome',
    component: () => import('../views/Stu/StudentHome.vue')
  },
  {
    path: '/admin',
    name: 'admin',
    component: () => import('../views/User/UserHome.vue')
  },
  {
    path: '/student/apply',
    name: 'applyStu',
    component: () => import('../views/Stu/Apply/ApplyStu.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
